﻿using DevExpress.ExpressApp;
using DevExpress.ExpressApp.SystemModule;
using EasyXaf.EntityDesigner.Editors.DetailViewEditors;

namespace EasyXaf.EntityDesigner.Controllers;

public class DetailViewObjectViewController : ObjectViewController<DetailView, DetailViewObject>
{
    private DialogController _dialogController;

    protected override void OnActivated()
    {
        base.OnActivated();

        _dialogController = Frame.GetController<DialogController>();
        if (_dialogController != null)
        {
            _dialogController.CancelAction.Active[Name] = false;
        }
    }
}
